package com.dongdongshop.service;

import com.dongdongshop.vo.CartVO;

import java.util.List;

public interface CartService {
    List<CartVO> addCart(List<CartVO> cartList, Long skuId, Integer num);

    List<CartVO> selectCartListFromRedis(Long id);

    void addCartListToRedis(List<CartVO> cartList, Long id);

    List<CartVO> mergeCartList(List<CartVO> cartVOS, List<CartVO> cartListFromRedis);
}
